package cn.juque.datapipeline.api.enums;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>TaskExecuteStatusEnum</li>
 * </ul>
 * @date 2023-04-06 23:23:12
 **/
public enum TaskExecuteStatusEnum {

    /**
     * enum
     */
    DISABLED(0, "禁用"),
    WAIT(1, "待执行"),
    ING(2, "执行中"),
    END(3, "已完成"),
    FAIL(4, "已失败"),
    ;

    private final Integer code;

    private final String label;

    TaskExecuteStatusEnum(Integer code, String label) {
        this.code = code;
        this.label = label;
    }

    public Integer getCode() {
        return code;
    }
}
